package com.tn.controller.alarm.common.enums;

public enum CommonCodeEnum {
    SUCCESS("成功", 1),
    UNKNOWN("未知错误", -1),
    EXPIRE("异常", -2),
    PARAM("参数异常", -3),
    NOT_EXISTS_USER("用户不存在", -331),
    INVALID_PASSWORD("密码错误", -332),
    PARAM_MISSING("必填参数缺失", -321),
    PARAM_CONFLICT("参数冲突", -322),
    INVALID_PAGE_PARAM("分页参数有误", -323),
    EXISTS("数据已存在", -311),
    NOT_EXISTS("数据不存在", -312),
    NOT_AUTHORIZED("没有操作权限", -313),
    DATA_BIND("含有绑定数据", -314);



    private String message;
    private int code;

    CommonCodeEnum(String message,int code){
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
